#include "mainwindow.h"
#include "ui_mainwindow.h"


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setAttribute(Qt::WA_QuitOnClose, true);//主窗口设置为true
}

MainWindow::~MainWindow()
{
    delete ui;
    delete new_uart_widget;
}
//选择串口功能按键按下
void MainWindow::on_pushButton_uart_clicked()
{
    new_uart_widget = new uart_tool();
    // new_uart_widget->resize(800, 600);
    new_uart_widget->show();
}


